<%@ page language="java" pageEncoding="UTF-8" %>
<%@include file="../../../common/include/inc_list.jsp" %>
<title>Portal管理平台</title>
<!--
* 字典分组管理管理
*
* Created by wangwenbo
* Date 2018/01/17
-->
<div class="row no-margin" style="padding: 8px 10px 10px;">
    <%@include file="../../../common/utils/dicGroupSelectTree.jsp" %>
    <div class="col-sm-9">
        <%--按钮组--%>
        <div class="btn-group">
            <button id="addBtn" class="btn btn-sm btn-primary">
                <i class="ace-icon glyphicon glyphicon-plus align-center bigger-110"></i>
                增加
            </button>
            <button id="editBtn" class="btn btn-sm btn-warning">
                <i class="ace-icon glyphicon glyphicon-edit align-center bigger-110"></i>
                修改
            </button>
            <button id="delBtn" class="btn btn-sm btn-danger">
                <i class="ace-icon glyphicon glyphicon-trash align-center bigger-110"></i>
                删除
            </button>
        </div>
        <div class="pull-right">
            <button id="searBtn" class="btn btn-xs btn-info" data-toggle="collapse" href="#queryPanel">
                <i class="ace-icon fa fa-arrow-down align-center bigger-110"></i>
                查询
            </button>
        </div>
        <%--分割线--%>
        <div class="hr hr2 hr-dotted"></div>
        <%--查询框--%>
        <div class="panel panel-default no-border no-margin">
            <div id="queryPanel" class="panel-collapse collapse">
                <div class="panel-body">
                    <div class="row">
                        <div class="col-sm-12 form-horizontal">
                            <div class="form-group col-lg-4 col-md-6 col-sm-12">
                                <label class="col-sm-3 control-label no-padding-right"> 分组编码 </label>

                                <div class="col-sm-9">
                                    <input type="text" name="search.dicGroupCodeLk" class="form-control"/>
                                </div>
                            </div>
                            <div class="form-group col-lg-4 col-md-6 col-sm-12">
                                <label class="col-sm-3 control-label no-padding-right"> 分组名称 </label>

                                <div class="col-sm-9">
                                    <input type="text" name="search.dicGroupNameLk" class="form-control"/>
                                </div>
                            </div>
                            <div class="form-group col-lg-4 col-md-6 col-sm-12">
                                <label class="col-sm-3 control-label no-padding-right"> 分组描述 </label>

                                <div class="col-sm-9">
                                    <input type="text" name="search.dicGroupCommentLk" class="form-control"/>
                                </div>
                            </div>
                            <div class="form-group col-lg-4 col-md-6 col-sm-12">
                                <div class="pull-right" style="margin-right: 12px;">
                                    <button id="searchBtn" class="btn btn-sm btn-info">
                                        <i class="ace-icon glyphicon glyphicon-search align-center bigger-110"></i>
                                        查询
                                    </button>
                                    <button id="resetBtn" class="btn btn-sm btn-info">
                                        <i class="ace-icon glyphicon glyphicon-repeat align-center bigger-110"></i>
                                        重置
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <%--表格列表--%>
        <table id="grid-table"></table>
        <%--分页--%>
        <div id="grid-pager"></div>

    </div><!-- /.col -->
</div>
<!-- /.row -->

<!-- Form表单 -->
<div id="tbSysDicGroupModal" class="modal fade" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close btn btn-xs btn-white" data-dismiss="modal">
                    <span>&times;</span>
                    <span class="sr-only">关闭</span>
                </button>
                <h6 class="modal-title">
                    <i class="ace-icon glyphicon glyphicon-edit align-top bigger-110"></i>
                    字典分组管理信息
                </h6>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-sm-12">
                        <form id="editTbSysDicGroupForm" class="form-horizontal" role="form">
                            <input type="hidden" id="dicGroupId" name="dicGroupId" value=""/>
                            <div class="form-group">
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 分组编码 </label>
                                    <div class="col-sm-4">
                                        <input type="text" name="dicGroupCode" placeholder="必填" class="form-control"/>
                                    </div>
                                </div>
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 分组名称 </label>
                                    <div class="col-sm-4">
                                        <input type="text" name="dicGroupName" placeholder="必填" class="form-control"/>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 显示排序 </label>
                                    <div class="col-sm-4">
                                        <input type="text" name="viewOrder" class="form-control"/>
                                    </div>
                                </div>
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 引用标识 </label>
                                    <div class="col-sm-4">
                                        <input type="text" name="dicMap" class="form-control"/>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 上级分组 </label>
                                    <div class="col-sm-4">
                                        <input type="hidden" name="parentCode"/>
                                        <input type="hidden" name="isLeaf"/>
                                        <input type="hidden" name="treeLevel"/>
                                        <input type="text" name="parentName" class="form-control" readonly="readonly"/>
                                    </div>
                                </div>
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 分组描述 </label>
                                    <div class="col-sm-4">
                                        <textarea name="dicGroupComment" class="autosize-transition form-control" style="overflow: hidden; word-wrap: break-word; resize: horizontal; height: 110px;"></textarea>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group hidden">
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 创建人 </label>
                                    <div class="col-sm-4">
                                        <input type="text" name="creater" class="form-control"/>
                                    </div>
                                </div>
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 创建时间 </label>
                                    <div class="col-sm-4">
                                        <input type="text" name="createDate" class="form-control"/>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group hidden">
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 修改人 </label>
                                    <div class="col-sm-4">
                                        <input type="text" name="modifier" class="form-control"/>
                                    </div>
                                </div>
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 修改时间 </label>
                                    <div class="col-sm-4">
                                        <input type="text" name="modifieDate" class="form-control"/>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!-- /.col -->
                </div>
                <!-- /.row -->
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    <i class="ace-icon fa fa-reply align-left bigger-110"></i>
                    返回
                </button>
                <button id="saveTbSysDicGroupBtn" type="button" class="btn btn-primary">
                    <i class="ace-icon fa fa-save align-left bigger-110"></i>
                    保存
                </button>
            </div>
        </div>
    </div>
</div>

<script src="${ctx}/resource/system/dicGroup/tbSysDicGroupList.js"></script>